(function (window) {
    let data = "abcque"

    let i = "abc"

    function foo() {
        console.log("foo()" + data);
    }

    function test() {

    }

    window.myModule = {data, foo}
})(window)